<template>
    <div class="root" v-cloak>
        <el-row class="asicchild">
            <el-col :span="16">
                <listxx :xinwen="xx">消息中心
                    <template v-slot:right>消息中心</template>
                    <template v-slot:fot>更多 > </template>
                </listxx>
            </el-col>
            <el-col class="asicchild1" :span="8">
                <listxx :xinwen="yy">
                    帮助中心
                    <template v-slot:fot>
                        更多 >
                    </template>
                </listxx>
            </el-col>
        </el-row>

        <div class="yunyin">
            <p>运营数据</p>
            <numsj v-for="item in lsj"></numsj>
        </div>
        <div class="common-layout">
            <el-container>
                <el-container>
                    <el-header>
                        <div class="footchild">
                            <imgleft></imgleft>
                            <div class="eve">
                                <tabs></tabs>
                                <listxx :xinwen="qq"></listxx>
                            </div>
                        </div>
                    </el-header>
                    <el-main>
                        <imgleft></imgleft>
                    </el-main>
                </el-container>
                <el-aside width="200px">
                    <listxx :xinwen="zz">销量排行
                    </listxx>
                </el-aside>
            </el-container>
        </div>
    </div>
</template>
<script>
import numsj from "../components/startyuny.vue"
import axios from "axios"
import tabs from "../components/tabs.vue"
export default {
    components: { numsj, tabs },
    data() {
        return {
            lsj: [1, 2, 3],
            xx: [],
            yy: [],
            zz: [],
            qq: [],
        }
    },
    mounted() {
        axios("http://localhost:3000/films").then((data) => {
            const gg = JSON.stringify(data.data)
            localStorage.setItem(1, gg)
            const msg = JSON.parse(gg)[0]
            this.xx = data.data[0].sj
            this.yy = msg.sj1
            this.zz = msg.sj3
            this.qq = msg.sj4

        })
    },
}
</script>
<style scoped>
[v-cloak] {
    display: none;
}

.root {
    height: calc(100% - 7%);
    padding: 0 5%;
    background-color: #f2f2f2;
}

.asicchild {
    background-color: greenyellow;
}

.common-layout /deep/ .el-header {
    height: 50%;
    padding: 0;
    overflow: hidden;
}

.common-layout .el-main {
    background-color: antiquewhite;
    padding: 0;
    margin-top: 10px;
    overflow: hidden;
}

.common-layout .el-aside {
    margin-left: 30px
}

.common-layout .el-aside {
    margin-left: 30px;
    width: 30%;
}

.common-layout /deep/ .el-radio-group {
    margin: 10px !important
}

.foot {
    height: 100%;
    display: flex;
    justify-content: space-between;
}

.foot div:last-child {
    width: 500px;
    height: 100%;
}

.footchild {
    display: flex;
    background-color: red;
    overflow: hidden;
}

.footchild .eve {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    height: 200px;
}

.yunyin {
    position: relative;
    display: flex
}

.yunyin p {
    position: absolute;
    top: 13%;
    left: 1%;
    font-size: 20px;
}
</style>